# 计算方法

num = int(input('num = '))
reversed_num = 0
while num > 0:
    reversed_num = reversed_num * 10 + num % 10
    num //= 10
    print(num)
print(reversed_num, __name__)

def test():
    print(__name__)
    
test()